module.exports = app => {
  const { STRING, INTEGER, JSON } = app.Sequelize;
  const tableModel = app.model.define('t_api', {
    id: { type: INTEGER, primaryKey: true, autoIncrement: true },
    name: STRING(30),
    path: STRING(30),
    method: STRING(30),
    dataSource: STRING(30),
    script: JSON,
    preScript: JSON,
    postScript: JSON,
    type: STRING(30),
    groupId: STRING(30),
    projectId: STRING(30),

  });
  return tableModel;
};
